package com.chinasofti;

public class Demo06 {
    public static void main(String[] args) {
        System.out.println(compare((byte)10,(byte)20));
        System.out.println(compare((short)20,(short)20));
        System.out.println(compare(10,10));
        System.out.println(compare(10L,20L));

    }
    public static boolean compare(byte a , byte b) {
        System.out.print("byte"+"\t");
        return a==b;
    }
    public static boolean compare(short a , short b) {
        System.out.print("short"+"\t");
        return a==b;
    }
    public static boolean compare(int a , int b) {
        System.out.print("int"+"\t"+"\t");
        return a==b;
    }
    public static boolean compare(long a , long b) {
        System.out.print("long"+"\t");
        return a==b;
    }

}
